import {Link,useLocation} from 'react-router-dom'
function NoMatch() {
  const location = useLocation();
  // location.pathname,location.hash,location.search,location.state
  return ( <div>
    <h3>404</h3>
    <p>您当前访问的页面 {JSON.stringify(location)}</p>
    <p>被外星人捉走了!</p>
    <Link to="/">回首页</Link>
  </div> );
}

export default NoMatch;